package com.tvsinfo.jdk.demo.case1_grammar;

import java.util.Arrays;
import java.util.List;

/**
 * 语法
 */
public class GrammarDemo {


    public static void main(String[] args) {

        List<String> list = Arrays.asList("A", "B", "C", "D");
        //第一种
        list.forEach(s -> System.out.println(s));

        //第二种
        list.forEach(System.out::println);
    }
}
